import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/home.vue'
import indexView from '@/views/home/index.vue'
import fenlView from '@/views/home/fenl.vue'
import gwcView from '@/views/home/gwc.vue'
import myView from '@/views/home/my.vue'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/home',name: 'home',component: homeView,children:[
    { path: 'index',name: 'index',component: indexView,},
    { path: 'fenl',name: 'fenl',component: fenlView,},
    { path: 'gwc',name: 'gwc',component: gwcView,},
    { path: 'my',name: 'my',component: myView,},
    ]},
    
  ],
})

export default router
